home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
cpp_libs
/
answrbok
/
4_6.lha
/
4_6
/
prsedgewick.c
< prev
next >
Wrap
Text File
|
1993-08-08
|
407b
|
20 lines
* Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
* The C++ Answer Book */
* Tony Hansen */
* All rights reserved. */
include <stream.h>
oid prsedgewick(int *a, int left, int right, int i)
for (int j = 0; j < left; j++)
cout << " ";
for ( ; j <= right; j++)
if (j == i)
cout << "[" << chr(a[j]) << "] ";
else
cout << " " << chr(a[j]) << " ";
cout << "\n";